const arr = [1, 2, 3]

const originalPush = Array.prototype.push
Array.prototype.push = function (...items) {
    // console.log("push被调用了",this===arr);
    originalPush.apply(this, newItems)
}

arr.push(4,5,6)
console.log(arr);